<div class="box" style="width:100%;text-align:center">
	{if !empty($info)}
	<h1 style="text-align: center">{$info.name}的简历</h1>
	<h3>编号：{$info.resume_id}</h3>
	<table border="1" cellpadding="3" cellspacing="0" style="width:60%;margin-left:20%">
		<tr >
			<td width="93" valign="center" colspan="2" rowspan="4" style="background:green;color:#fff">个人信息</td>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff">姓名</td>
			<td width="93" valign="center" colspan="2" >{$info.name|default=''}</td>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff" >学历</td>
			<td width="93" valign="center" colspan="2" >{$info.education}</td>
			<td width="93" colspan="2" rowspan="4" align="center" valign="middle" >
				<img src="{$info.headimg|default='/upload/headimg.png'}" width="100" height="100" />
			</td>
		</tr>
		<tr >
			<td  valign="center" colspan="2" style="background:green;color:#fff" >性别</td>
			<td  valign="center" colspan="2" >{if $info['sex']==0}男{else}女{/if}</td>
			<td  valign="center" colspan="2" style="background:green;color:#fff" >出生年月</td>
			<td  valign="center" colspan="2" >{$info.birthday}</td>
			<!--<td  valign="center" >户籍地</td>-->
			<!--<td  valign="center" colspan="2" >xxx</td>-->
		</tr>
		<!-- <tr >
         <td width="93" valign="center" colspan="2" >身高</td>
         <td width="72" valign="center" colspan="2" >xxxcm</td>
         <td width="88" valign="center" colspan="2" >体重</td>
         <td width="89" valign="center" colspan="2" >xxxkg</td>
         <td width="68" valign="center" >婚姻状况</td>
         <td width="87" valign="center" colspan="2" >xxx</td>
        </tr>  -->
		<tr >
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff" >手机</td>
			<td width="93" valign="center" colspan="2" >{$info.phone}</td>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff" >Email</td>
			<td width="93" valign="center" colspan="2" >{$info.email}</td>
		</tr>
		<tr >
			<td width="93" valign="center" colspan="2" style="width:93px;background:green;color:#fff">家庭住址</td>
			<td width="530" valign="center" colspan="2" >{$info.address}</td>
		</tr>
		<tr >
			<td width="93" valign="center" colspan="2" rowspan="3" style="background:green;color:#fff">求职意向</td>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff">期望职位</td>
			<td width="200" valign="center" colspan="2">{$info.position|default=''}</td>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff">期望行业</td>
			<td width="200" valign="center" colspan="5">{$info.positionName|default=''}</td>
		</tr>
		<tr>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff" >期望薪资</td>
			<td width="200" valign="center" colspan="2" >{if $info['ismy']==1}面议{else}{$info.min}元~{$info.max}元/月{/if}</td>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff" >工作地区</td>
			<td width="200" valign="center" colspan="5" >{$info.city}</td>
		</tr>
		<tr>
			<td width="93" valign="center" colspan="2" style="background:green;color:#fff" >目前状况</td>
			<td width="200" valign="center" colspan="9" >{if $info['is'] == 0}已离职{else}在职{/if}</td>
		</tr>
		<tr>
			<td width="93" valign="center" style="background:green;color:#fff" >自我评价</td>
			<td width="570" valign="center" colspan="12" style="text-align:left">{$info.cont}</td>
		</tr>
		<tr>
			<td width="93" valign="center" style="background:green;color:#fff" >工作经历</td>
			<td width="570" valign="center" colspan="12" style="text-align:left">
				{volist name='info.experienceList' id='vo'}
				{$vo.company|default=''}<br/>
				职位名称：{$vo.title}<br/>
				在职时间：{$vo.start_time} - {$vo.end_time}<br/>
				职位描述：{$vo.cont}<br/><br/>
				{/volist}
			</td>
		</tr>
		<tr>
			<td width="93" valign="center" style="background:green;color:#fff" >教育经历</td>
			<td width="570" valign="center" colspan="12" style="text-align:left">
				{volist name='info.educationList' id='vo'}
				{$vo.school|default=''}<br/>
				{$vo.education}<br/>
				{$vo.major}<br/>
				{$vo.start_time} - {$vo.end_time}<br/><br/>
				{/volist}
			</td>
		</tr>
	</table>

	<!--<p><a href="{:url('user/daochuword')}" rel="external nofollow" >点击下载</a></p>-->
	{else}用户暂时还没有上传简历{/if}
</div>

<div class="box-footer">
	<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
	{if !empty($info)}<ob_link><a class="btn" onclick="delResume({$info.resume_id})" value="-1" ><i class="fa fa-trash"></i> 删 除</a></ob_link>{/if}
	<!--<ob_link><a class="btn" href="{:url('user/daochuword')}" value="-1" ><i class="fa fa-trash"></i> 导出</a></ob_link>-->
</div>
<script>
	//导出功能
	$(".export").click(function(){
		window.location.href = searchFormUrl($(".export"));
	});
	function delResume(id){
		layer.confirm('是否确定删除该简历？（操作不可逆，请慎重操作）！', {
			btn: ['确认','取消'] //按钮
		}, function(){
			$.post("{:url('delResume')}",{resume_id:id},function(data){
				if(data.code == 0){
					layer.msg(data.msg);
					location.reload();
				}else{
					layer.msg(data.msg);
				}
			},'json');

		}, function(){
		});
	}
</script>